﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KaiXin.BLL.Interface;
using KaiXin.BLL.Tycoon;
using KaiXin.DTO.Tycoon;

namespace KaiXin.BLL
{
    public class KaiXinWeb:IKXTycoon
    {
        #region const
        const string EMAIL = "uisodyug5@yeah.net";
        const string PASSWORD = "123456";
        #endregion

        #region filed
        private KXTycoon _kxty = new KXTycoon(EMAIL, PASSWORD);
        #endregion



        #region IKXTycoon 成员

        public List<KaiXin.DTO.Tycoon.Goods> GetGoods(Func<GoodsClass, bool> func)
        {
            return _kxty.GetGoods(func);
        }


        public List<Goods> GetGoods()
        {
            return _kxty.GetGoods();
        }

        public List<Goods> GetTOP10(Func<Goods, bool> func)
        {
            return _kxty.GetTOP10(func);
        }

        public event PriceChange PriceChangeEvent;

        #endregion
    }
}
